// export function countTime(time){

// }



const countTime = function (time) {
  let arr = time.split(':')
  // 只取到前两个成员
  let str1 = arr[0]
  let str2 = arr[1]

  let sarr1 = str1.split('')
  let sarr2 = str2.split('')
  let sum1 = 0
  let sum2 = 0
  let sum = 0
  sum1 = (parseInt(sarr1[0]) * 10 + parseInt(sarr1[1])) * 60 * 60 * 1000
  sum2 = (parseInt(sarr2[0]) * 10 + parseInt(sarr2[1])) * 60 * 1000
  sum = sum1 + sum2
  return sum
}
module.exports = countTime